package readXML;

import java.io.Serializable;

public class RelationWordVo implements Serializable{
	
	private static final long serialVersionUID = -4381726840525609840L;
	
	private String id;
	
	private String name;
	
	private String type;
	
	private Object obj;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String toString(){
		return "name:"+name;
	}
	
    public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Object getObj() {
		return obj;
	}
	public void setObj(Object obj) {
		this.obj = obj;
	}
	@Override    
     public boolean equals(Object obj){    
	     if(obj instanceof RelationWordVo) {    
	      if(((RelationWordVo)obj).name.trim() .equals(name.trim()) )    
	         return true;    
	     }    
	     return false;    
     }    
    
     @Override    
     public int hashCode(){    
        return 0;    
     } 
}
